home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Languages / Quick C 2.0 / INCLUDE / STDARG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-12-05  |  533 b   |  22 lines

  1. /***
  2. *stdarg.h - defines ANSI-style macros for variable argument functions
  3. *
  4. *    Copyright (c) 1985-1989, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file defines ANSI-style macros for accessing arguments
  8. *    of functions which take a variable number of arguments.
  9. *    [ANSI]
  10. *
  11. ****/
  12.  
  13.  
  14. #ifndef _VA_LIST_DEFINED
  15. typedef char *va_list;
  16. #define _VA_LIST_DEFINED
  17. #endif
  18.  
  19. #define va_start(ap,v) ap = (va_list)&v + sizeof(v)
  20. #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1]
  21. #define va_end(ap) ap = NULL
  22.